package com.tensquare.friend.client;
/*
 *ClassName:NoticeClient
 *Description:
 *@author:可爱的大鸭子
 */

import com.tensquare.notice.pojo.Notice;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "tensquare-notice")
public interface NoticeClient {

    //添加消息通知
    @RequestMapping(value = "notice",method = RequestMethod.POST)
    public Result add(@RequestBody Notice notice) ;

    //删除消息通知
    @RequestMapping(value = "notice",method = RequestMethod.DELETE)
    public Result delete(@RequestBody Notice notice) ;
}